﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OAPlatform.DomainModel.Model;

namespace OAPlatform.DomainModel.Contract
{
    public interface IDepartmentRepository : IRepository<Department>
    {
        /// <summary>
        /// 获取指定部门的所有职位
        /// </summary>
        /// <param name="department">要获取职位的部门</param>
        /// <returns>该部门的所有职位</returns>
        List<Band> GetBandsByDepartment(Department department); 

        /// <summary>
        /// 添加职位到指定部门
        /// </summary>
        /// <param name="band">要添加的职位</param>
        /// <param name="department">要添加到的部门</param>
        void AddBand(Department department, Band band);
    }
}
